package com.ruoyi.goods.config;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.Map;

//@Component
@RabbitListener(queues = "qqq")
public class RabbitListenerAdapter {
    @RabbitHandler
    public void process(String message) {
        System.out.println(message);
    }
}
